CREATE DISTRIBUTION ds1 COLUMN TYPE integer;
CREATE DISTRIBUTION ds2 COLUMN TYPE varchar;

ADD KEY RANGE krid3 FROM 21 ROUTE TO sh2 FOR DISTRIBUTION ds1;
ADD KEY RANGE krid2 FROM 11 ROUTE TO sh1 FOR DISTRIBUTION ds1;
ADD KEY RANGE krid1 FROM 1 ROUTE TO sh1 FOR DISTRIBUTION ds1;

ADD KEY RANGE krid4 FROM 00000000-0000-0000-0000-000000000000 ROUTE TO sh1 FOR DISTRIBUTION ds2;
ADD KEY RANGE krid5 FROM 80000000-0000-0000-0000-000000000001 ROUTE TO sh2 FOR DISTRIBUTION ds2;